#include "strtopinyin.h"
#include "time.h"


int main(void)
{
	int i = 0;
	time_t begin = time(NULL);
	//while(i ++ < 1000000) 
	{
		char * p = strtopinyin("哈尔滨理工大学","UTF-8");
		if(p == NULL) {
			printf("convert error\n");
		} else {
			printf("%s\n", p);
			free(p);
		}
	}
	time_t end = time(NULL);
	//printf("%u", 1000000/  (end - begin) );
	return 0;
}
